package kr.co.shoppingmall.shop;

import java.util.HashMap;
import java.util.List;

public class ShopServiceImpl implements ShopService {
    private ShopDAO shopDAO;

    public void setShopDAO(ShopDAO DAO) {
	this.shopDAO = DAO;
    }

    @Override
    public List<ShopDTO> getProductList(String category) {
	return shopDAO.getProductList(category);
    }

    @Override
    public ShopDTO getProductDetail(String prodCode) {
	return shopDAO.getProductDetail(prodCode);
    }

    @Override
    public List<PurchasedDTO> getPurchasedList(String memId) {
	// TODO Auto-generated method stub
	return null;
    }

    @Override
    public int getProductCount(String category) {
	return shopDAO.getProductCount(category);
    }

    @Override
    public void order(PurchasedDTO dto) {
	shopDAO.order(dto);
    }

}
